
<ion-content class="has-header has-footer detail_mp" id="content" style="bottom:0;background: #F5F5F5">
    <ul class="Order_Tab ranch_tab" id="small">
        <li ng-class="e==1?'Order_active':'no_active'" ng-click="switch_phsu(1,2)" style="width: 50% !important;">认养消息</li>
        <li ng-class="b==1?'Order_active':'no_active'" ng-click="switch_phsu(2,1)" style="width: 50% !important;">官方公告</li>
    </ul>
    <div ng-if="e==1">
        <div class="news_wp" ng-repeat="news_data in news_data track by $index">
            <div class="code_wp_was">
                <img src="img/news_gr.png" alt="">
            </div>
            <div class="code_wp_news">
                <div class="news_before">
                    <span>{{news_data.title}}</span>
                    <span>{{news_data.writetime | date:'yyyy.MM.dd  HH:mm:ss'}}</span>
                </div>
                <div style="color:#565656">
                   {{news_data.content}}
                </div>
            </div>
        </div>
        <div>
            <ion-infinite-scroll ng-if="hasMore" on-infinite="loadMore()" distance="1%" immediate-check="false">
            </ion-infinite-scroll>
            <p ng-hide="hasMore"></p>
        </div>
    </div>
    <div ng-if="b==1">
        <div class="news_wp" ng-repeat="news_up_data in news_up_data track by $index">
            <div class="code_wp_was">
                <img src="img/xx_ld.png" alt="">
            </div>
            <div class="code_wp_news">
                <div class="news_before">
                    <span>{{news_up_data.title}}</span>
                    <span>{{news_up_data.writetime | date:'yyyy.MM.dd  HH:mm:ss'}}</span>
                </div>
                <div style="color:#565656">
                    {{news_up_data.content}}
                </div>
            </div>
        </div>
        <div>
            <ion-infinite-scroll ng-if="hasMore_up" on-infinite="loadMore_up()" distance="1%" immediate-check="false">
            </ion-infinite-scroll>
            <p ng-hide="hasMore_up"></p>
        </div>
    </div>
</ion-content>
